
#ifndef GKT_IMAGE_H
#define GKT_IMAGE_H

#include "gkt_types.h"

#ifdef __cplusplus
extern "C" {
#endif

#if defined(GKT_CONFIG_SCREEN_ENABLE) && GKT_CONFIG_SCREEN_ENABLE

#define GKT_IMAGE_ENABLE	1

typedef struct {
	uint16_t	width;
	uint16_t	height;
	const uint8_t	*data;
} gkt_image_attr_s;

/*
 * gkt_image_set_attrs
 *   attr_table[0] should be dummy attr, that is, 
 *   attr_table[0].wiidth & attr_table[0].height should be ZERO
 *   attr_table[0].data should be NULL
 */
void gkt_image_set_attrs(
			const gkt_image_attr_s *attr_table,
			uint32_t table_size);

const gkt_image_attr_s *gkt_image_get_attr(uint32_t id);

#else

#define GKT_IMAGE_ENABLE	0

#define gkt_image_set_attrs(attr_table, table_size)	do {} while(0)
#define gkt_image_get_attr(id)	NULL
#endif

#ifdef __cplusplus
}
#endif

#endif	/* GKT_IMAGE_H */

